
import axios from '@/api/interceptor';
import { 
  TaskSeriesSearchList,
  TaskSeriesSearchModel,
  UserTaskSearchList,
  UserTaskSearchModel,
} from './doctor.d';

export function queryDoingTask(model: any) {
  return axios.post(
    '/anno/user/doing/task/search',
    model
  );
}

export function taskJoin(model: any) {
  return axios.post(
    '/anno/task/join',
    model
  );
}

export function getUserTaskInfo(model: TaskSeriesSearchModel) {
  return axios.post<any>(
    '/anno/task/anno/info',
    model
  );
}

export function userTaskSearch(model: UserTaskSearchModel) {
  return axios.post<UserTaskSearchList>(
    '/anno/user/task/search',
    model
  );
}

export function taskJoinableSearch(model: any) {
  return axios.post(
    '/anno/task/joinable/search',
    model
  );
}

export function taskSeriesSearch(model: TaskSeriesSearchModel) {
  return axios.post<TaskSeriesSearchList>(
    '/anno/user/task/series/search',
    model
  );
}








